
/**
 * 
 * @param {FormData} oData
 */
function sendFormData(oData, url, call) {
  var oReq = new XMLHttpRequest();
  oReq.open("POST", url, true);
  oReq.onload = function(oEvent) {
    if(this.status == 200||this.status == 304){
      return call(true, this.responseText);
    } else {
      return call(false, this.responseText);
    }
  };
 
  oReq.send(oData);
}
/**
 * 
 * @param {FormData} oData
 */
function sendFormData(oData, url, call) {
  $.ajax({
  url: url,
  type: "POST",
  data: oData,
  processData: false,  // 告诉jQuery不要去处理发送的数据
  contentType: false,   // 告诉jQuery不要去设置Content-Type请求头
  dataType: "text",
  success: function(msg){
  	Materialize.toast(msg, 4000);
	  //app.html = msg.data;
  }
});
}